<?php
/**
 * +--------------------------------------------------------+
 * @Created by Phpstorm.
 * @Category BaseModel.php
 * @Depiction
 * @Author hwy <429208948@qq.com>
 * @Date 2022/3/3  16:44
 * +--------------------------------------------------------+
 */

namespace App\Models;

use DateTimeInterface;
use Illuminate\Database\Eloquent\Model;

class BaseModel extends Model
{
    protected function serializeDate(DateTimeInterface $date)
    {
        return $date->format('Y-m-d H:i:s');
    }
}
